package com.itheima.HomeWork.homework02;

import java.io.FileWriter;
import java.io.IOException;

public class Demo {
    public static void main(String[] args) throws IOException {
        FileWriter fileWriter = new FileWriter("a.txt");
        fileWriter.write("123");
        fileWriter.close();
        FileWriter fileWriter2 = new FileWriter("a.txt",true);
        fileWriter2.write("120000");
        fileWriter2.close();
    }
}
